/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package our.gui;

import javax.swing.BorderFactory;

/**
 *
 * @author keysman
 */
public class ourButton extends javax.swing.JButton implements ourInterfaceCommonObj {
    // Definisco la classe che possiede le funzioni comuni a tutti gli oggetti a video
    public our.gui.commonObjectClass SETTINGS = new our.gui.commonObjectClass();
    
    public ourButton()
    {
        super();
        setBorderPainted(true);
        setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        this.updateUI();
        addMouseListener(new java.awt.event.MouseAdapter() {
            @Override
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                setBorder(BorderFactory.createEtchedBorder());
            }
            @Override
            public void mouseExited(java.awt.event.MouseEvent evt) {
                setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
            }
        });
    }

    public boolean ISVALID(boolean bShowErrorMessage) {
        return true;
    }
}
